<!--<?php
print <<<EOT
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="../css/admin.css" rel="stylesheet" type="text/css" />
<title>webshop</title>
</head>
<script language="javascript">
function add(theform) { 

if (theform.code.value==""||theform.code.value=="Enter Code ...") { 
    theform.code.focus(); 
    alert("Please enter code"); 
    return false; } 

}

</script>

<table width="95%" border="0" align="center">
  <tr> 
    <td valign="top">

        <table border="0" cellspacing="1" cellpadding="1">
          <tr><td width="200">
		  


<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="f_login" method="post" action="p_product_add.php">
  <tr>
            <td><input type="text" class="text" name="code" size="20" value="Enter Code ..." onFocus="code.value=''"></td>
            <td><input type="hidden" name="action" value="add"><input name="image" type="image" src="../images/admin/bt_add.gif" onClick="return submitForm('f_login','p_product.php',1)"  onfocus="add(f_login)"></td>
  </tr>
</form>
</table>



<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form name="form2" method="get" action="p_product.php">
  <tr>
    <td><input type="text" class="text" name="search_key" size="40" value="Enter Code or Name ..." onFocus="search_key.value=''"><input type="hidden" name="action" value="search"></td>
    <td>&nbsp;<input name="image" type="image" src="../images/admin/bt_search.gif"></td>
    <td>&nbsp;<input name="image" type="image" src="../images/admin/bt_listall.gif" onClick="Redirect('p_product.php',1);return false;"></td>
    <td>&nbsp;&nbsp;<a href="p_product_excel.php"><img src="../images/admin/excel.gif" border="0" align="top"></a></td>
  </tr>
  <tr>
    <td colspan="4">
	<strong>Type</strong>:


	  {$type_show}


	</td>
  </tr>
  <tr>
    <td colspan="4">
	<strong>Category</strong>:
	  {$category_show}
	</td>
  </tr>
  <tr>
    <td colspan="4">
	<strong>Supplier</strong>:
	<select name="supplier_id" class="text" style="width:300">
	<option value=""    select="selected">
	  {$pro_supplier_show}
	</select>
	</td>
  </tr>
  <tr>
    <td colspan="4">
	<strong>Best Seller ?</strong>
	<input type="radio" name="best" value="1">Yes
	<input type="radio" name="best" value="0" >No
	</td>
  </tr>
</form>
</table>

			</td>
          </tr>
        </table>

		
<form name="form1" method="post" action="../../inc/mod_pub.php">
<input type="hidden" name="nonew" value="1">
        <table width="100%" border="0" cellspacing="1" cellpadding="1" class="tb">
          <tr class="tbheader"> 
            <td width="10%">Code</td>
            <td width="20%">Product Name (English/ Danish/Chinese)</td>
			<td width="20%">Cateogry</td>
			<td width="20%">Type</td>
			<td width="10%">Best Seller (Y/N)</td>
			<td width="10%"></td>
          </tr>
<!--
EOT;
for($i=0;$i<count($out_ary);$i++){
print <<<EOT
--> 		  

          <tr class="tbcontent1"> 
            <td>{$out_ary[$i]['code']}</td>
            <td>{$out_ary[$i]['new_name']}</td>
			<td>{$out_ary[$i]['category']}</td>
			<td>{$out_ary[$i]['type']}</td>
			<td align="center">{$out_ary[$i]['is_best']}</td>

			<td align=center bgcolor="ECECEC">
			<a href="p_product_edit.php?cid={$out_ary[$i]['id']}"><img src="../images/admin/bt_edit.gif" border="0" alt="Edit"></a>
			<a href="p_product_del.php?cid={$out_ary[$i]['id']}"><img src="../images/admin/bt_delete.gif" border="0" Alt="Delete"></a>
			<a href="p_product_enq.php?cid={$out_ary[$i]['id']}"><img src="../images/admin/bt_enquiry.gif" border="0" Alt="Enquire"></a></td>
          </tr>
<!--
EOT;
}
print <<<EOT
-->  



        </table>
</form>


</td>

  </tr>
</table>


{$page_show}

<body>
</body>
</html>
<!--
EOT;
?>-->